/*=============================================================================
PostProcessEffects.cpp : 3d engine post processing acess/scripts interfaces
Copyright (c) 2001 Crytek Studios. All Rights Reserved.

Revision history:
* 23/02/2005: Re-factored/Converted to CryEngine 2.0 by Tiago Sousa
* Created by Tiago Sousa

Notes:
* Check PostEffects.h for list of available effects

=============================================================================*/

#include "StdAfx.h"

void C3DEngine::SetPostEffectParam(const char *pParam, float fValue, bool bForceValue) const
{  
  if(pParam)
    GetRenderer()->EF_SetPostEffectParam(pParam, fValue, bForceValue); 
}

void C3DEngine::GetPostEffectParam(const char *pParam, float &fValue) const
{
  if(pParam)
    GetRenderer()->EF_GetPostEffectParam(pParam, fValue); 
}

void C3DEngine::SetPostEffectParamVec4(const char *pParam, const Vec4 &pValue, bool bForceValue) const
{  
  if(pParam)
    GetRenderer()->EF_SetPostEffectParamVec4(pParam, pValue, bForceValue); 
}

void C3DEngine::GetPostEffectParamVec4(const char *pParam, Vec4 &pValue) const
{
  if(pParam)
		GetRenderer()->EF_GetPostEffectParamVec4(pParam, pValue); 
}

void C3DEngine::SetPostEffectParamString(const char *pParam, const char *pszArg) const
{  
  if(pParam && pszArg)
    GetRenderer()->EF_SetPostEffectParamString(pParam, pszArg); 
}

void C3DEngine::GetPostEffectParamString(const char *pParam, const char *pszArg) const
{
  if(pParam && pszArg)
    GetRenderer()->EF_GetPostEffectParamString(pParam, pszArg); 
}

int32 C3DEngine::GetPostEffectID(const char* pPostEffectName)
{
	return GetRenderer()->EF_GetPostEffectID(pPostEffectName); 
}

void C3DEngine::ResetPostEffects(bool bOnSpecChange) const
{
	GetRenderer()->EF_ResetPostEffects(bOnSpecChange);
}
